﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace KhachSan.Process.Private.Bo
{
    public partial class TilteImages : UserControl
    {
        public TilteImages()
        {
            InitializeComponent();
        }
        private int mau;

        public int Mau
        {
            get { return mau; }
            set { mau = value; }
        }
        public Panel Images
        {
            get { return this.pnMauSat; }
            set { pnMauSat = value; }
        }
        public LabelControl Tilte
        {
            get { return title; }
            set { title = value; }
        }

        private void pnMauSat_Click(object sender, EventArgs e)
        {
            ColorDialog dialog = new ColorDialog();
            DialogResult result= dialog.ShowDialog();
            if (result == DialogResult.OK)
            {
                mau = dialog.Color.ToArgb();
                GanMau();
            }
        }

        public void GanMau()
        {
            pnMauSat.BackColor = System.Drawing.Color.FromArgb(mau);
        }
    }
}
